#include <logbase.h>
#include <inttypes.h>

int main(int argc, char **argv)
{
    int tmpval = 10;
    int *tmpptr = &tmpval;
    long tmplong = (long)tmpptr;
    logdebugc("get ptr's data:%d", tmpptr[0]);
    logdebugc("long can save ptr, 32bit system, sizeof(long) = 4, sizeof(int *) = 4");
    logdebugc("long can save ptr, 64bit system, sizeof(long) = 8, sizeof(int *) = 8");
    logdebugc("get long ptr's data:%d", *((int *)tmplong));
    return 1;
}
